import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;
import java.nio.file.Paths;

/**
 * Created by Administrator on 2016/2/24.
 */
public class LuceneTest01  {
    /*
    @Before
    public void setUp(){

    }
    */

    @Test
    public void test01() throws IOException {
        Directory dir = FSDirectory.open(Paths.get(""));
        IndexWriterConfig config = new IndexWriterConfig(new StandardAnalyzer());
        IndexWriter writer = new IndexWriter(dir,config);

        Document doc = new Document();


    }
}
